<script setup lang="ts">
import { ref } from 'vue';

let row_num=ref(0)
</script>

<template>
    <div class="main">
        <input v-model="row_num" type="number"></input>
        <button>输出</button>
    </br>
    <div v-for="value in row_num" class="div_row"></div>
</div>
</template>

<style scoped>
.div_row{
    height: 10px;
    width: 10px;
    display: flex;
    border: 1px red solid;
}
</style>